package com.cuc.platform.core.dao.baseInfo.jdbctemplate;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.cuc.platform.core.domain.baseInfo.AttrType;

public class AttrTypeRowMapper  implements RowMapper<AttrType> {

	@Override
	public AttrType mapRow(ResultSet rs, int paramInt)
			throws SQLException {
		AttrType attrType = new AttrType();
		
		attrType.setAttrTypeId(rs.getLong("attr_Type_id"));
		attrType.setCode(rs.getString("code"));

		return attrType;
	}
}
